package com.open.launcher.bean.allchannels;

import java.util.List;

/**
 * Created by Shinelon on 2017/10/14.
 */

public class Channel {
    /**
     * code : 200
     * status : success
     * time : 1535864167
     * data : {"id":100,"name":"高清频道","lives":[{"id":110,"name":"深圳卫视高清","number":106,"sources":["http://120.194.143.34:8180/TV00000000000000000106@HHZT;LIVE"]},{"id":109,"name":"河南卫视高清","number":105,"sources":["http://120.194.143.34:8180/TV00000000000000000105@HHZT;LIVE"]},{"id":108,"name":"湖南卫视高清","number":104,"sources":["http://120.194.143.34:8180/TV00000000000000000104@HHZT;LIVE"]},{"id":107,"name":"浙江卫视高清","number":103,"sources":["http://120.194.143.34:8180/TV00000000000000000103@HHZT;LIVE"]},{"id":106,"name":"东方卫视高清","number":102,"sources":["http://120.194.143.34:8180/TV00000000000000000102@HHZT;LIVE"]},{"id":105,"name":"CCTV8高清","number":101,"sources":["http://120.194.143.34:8180/TV00000000000000000101@HHZT;LIVE"]},{"id":104,"name":"CCTV6高清","number":100,"sources":["http://120.194.143.34:8180/TV00000000000000000100@HHZT;LIVE"]},{"id":103,"name":"CCTV5高清","number":99,"sources":["http://120.194.143.34:8180/TV00000000000000000099@HHZT;LIVE"]},{"id":102,"name":"CCTV3高清","number":98,"sources":["http://120.194.143.34:8180/TV00000000000000000098@HHZT;LIVE"]},{"id":101,"name":"CCTV1高清","number":97,"sources":["http://120.194.143.34:8180/TV00000000000000000097@HHZT;LIVE"]}]}
     */

    private int code;
    private String status;
    private String time;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 100
         * name : 高清频道
         * lives : [{"id":110,"name":"深圳卫视高清","number":106,"sources":["http://120.194.143.34:8180/TV00000000000000000106@HHZT;LIVE"]},{"id":109,"name":"河南卫视高清","number":105,"sources":["http://120.194.143.34:8180/TV00000000000000000105@HHZT;LIVE"]},{"id":108,"name":"湖南卫视高清","number":104,"sources":["http://120.194.143.34:8180/TV00000000000000000104@HHZT;LIVE"]},{"id":107,"name":"浙江卫视高清","number":103,"sources":["http://120.194.143.34:8180/TV00000000000000000103@HHZT;LIVE"]},{"id":106,"name":"东方卫视高清","number":102,"sources":["http://120.194.143.34:8180/TV00000000000000000102@HHZT;LIVE"]},{"id":105,"name":"CCTV8高清","number":101,"sources":["http://120.194.143.34:8180/TV00000000000000000101@HHZT;LIVE"]},{"id":104,"name":"CCTV6高清","number":100,"sources":["http://120.194.143.34:8180/TV00000000000000000100@HHZT;LIVE"]},{"id":103,"name":"CCTV5高清","number":99,"sources":["http://120.194.143.34:8180/TV00000000000000000099@HHZT;LIVE"]},{"id":102,"name":"CCTV3高清","number":98,"sources":["http://120.194.143.34:8180/TV00000000000000000098@HHZT;LIVE"]},{"id":101,"name":"CCTV1高清","number":97,"sources":["http://120.194.143.34:8180/TV00000000000000000097@HHZT;LIVE"]}]
         */

        private int id;
        private String name;
        private List<LivesBean> lives;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<LivesBean> getLives() {
            return lives;
        }

        public void setLives(List<LivesBean> lives) {
            this.lives = lives;
        }

        public static class LivesBean {
            /**
             * id : 110
             * name : 深圳卫视高清
             * number : 106
             * sources : ["http://120.194.143.34:8180/TV00000000000000000106@HHZT;LIVE"]
             */

            private int id;
            private String name;
            private int number;
            private List<String> sources;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public List<String> getSources() {
                return sources;
            }

            public void setSources(List<String> sources) {
                this.sources = sources;
            }
        }
    }

//    private int id;
//    private String name;
//    private int sort;
//    private List<Program> lives;
//
//    public int getId() {
//        return id;
//    }
//
//    public void setId(int id) {
//        this.id = id;
//    }
//
//    public String getName() {
//        return name;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }
//
//    public int getSort() {
//        return sort;
//    }
//
//    public void setSort(int sort) {
//        this.sort = sort;
//    }
//
//    public List<Program> getLives() {
//        return lives;
//    }
//
//    public void setLives(List<Program> lives) {
//        this.lives = lives;
//    }
//
//    @Override
//    public String toString() {
//        return "Channel{" +
//                "id=" + id +
//                ", name='" + name + '\'' +
//                ", sort=" + sort +
//                ", lives=" + lives +
//                '}';
//    }
}
